package cn.domypay.mail.base;

import javax.mail.*;
/**
 *
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2005</p>
 * <p>Company: PomInfo</p>
 * @author Tim huang
 * @version 1.0
 */

public class SwanetAuthenticate extends Authenticator{

	private String sUsername = null;
	private String sPassword = null;

	public SwanetAuthenticate(String username, String password){
		// Assign username and password values passed in data from calling mail connection
		sUsername = username;
		sPassword = password;
	}
  // username/password get authenticated next line
	protected PasswordAuthentication getPasswordAuthentication(){
		return new PasswordAuthentication(sUsername, sPassword);
	}
}
